package com.ruoyi.flow.service.flowable;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.flow.vo.processinstance.StartProcessInstanceVo;
import org.flowable.engine.history.HistoricProcessInstance;
import org.flowable.engine.runtime.ProcessInstance;

/**
 * @title:
 * @author: bruce.liu
 * @since: 2024/10/23 16:50
 */
public interface FlowableProcessInstanceService {

    IPage<ProcessInstance> runPage(IPage<ProcessInstance> page,String processName, String userCode);

    IPage<HistoricProcessInstance> hisPage(IPage<HistoricProcessInstance> page, String processName, String userCode);

    ProcessInstance startProcessInstance(StartProcessInstanceVo startProcessInstanceVo) ;
}
